package org.wz.complex.work.entity.project.database;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.wz.complex.work.anno.QueryConf;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("project_database_name")
public class DatabaseName {

    @TableId(type = IdType.AUTO)
    private Long id;

    @QueryConf("in")
    private String name;  // 数据库名称

    @QueryConf
    private String code;     // 编码

    @QueryConf("%")
    private String title;    // 描述

    @QueryConf
    private String category; // mysql,  postgresql,  oracle , db2

    @QueryConf
    private Long parentId;  // 父级id:  DatabaseSource的id

    @TableField(exist = false)
    private DatabaseSource databaseSource;


}
